package com.ql.pojo.yk;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class  Doctor {
    private Integer docid;

    private String docname;

    private String doclogin;

    private String docpassword;

    private Integer docsex;

    private Integer docage;

    private Integer department;

    private Integer jobtitle;

    private String phone;

    private String landline;

    private String introduce;

    private Integer state;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date entrytime;

    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date departuretime;

    private Integer lingdao;

    private String photo;

    //表关联
    private String doctorRName;

    private String kname;

    public Date getDeparturetime() {
        return departuretime;
    }

    public void setDeparturetime(Date departuretime) {
        this.departuretime = departuretime;
    }

    public String getKname() {
        return kname;
    }

    public void setKname(String kname) {
        this.kname = kname;
    }

    public String getDoctorRName() {
        return doctorRName;
    }

    public void setDoctorRName(String doctorRName) {
        this.doctorRName = doctorRName;
    }

    public Integer getDocid() {
        return docid;
    }
    public void setDocid(Integer docid) {
        this.docid = docid;
    }

    public String getDocname() {
        return docname;
    }

    public void setDocname(String docname) {
        this.docname = docname == null ? null : docname.trim();
    }

    public String getDoclogin() {
        return doclogin;
    }

    public void setDoclogin(String doclogin) {
        this.doclogin = doclogin == null ? null : doclogin.trim();
    }

    public String getDocpassword() {
        return docpassword;
    }

    public void setDocpassword(String docpassword) {
        this.docpassword = docpassword == null ? null : docpassword.trim();
    }

    public Integer getDocsex() {
        return docsex;
    }

    public void setDocsex(Integer docsex) {
        this.docsex = docsex;
    }

    public Integer getDocage() {
        return docage;
    }

    public void setDocage(Integer docage) {
        this.docage = docage;
    }

    public Integer getDepartment() {
        return department;
    }

    public void setDepartment(Integer department) {
        this.department = department;
    }

    public Integer getJobtitle() {
        return jobtitle;
    }

    public void setJobtitle(Integer jobtitle) {
        this.jobtitle = jobtitle;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getLandline() {
        return landline;
    }

    public void setLandline(String landline) {
        this.landline = landline == null ? null : landline.trim();
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce == null ? null : introduce.trim();
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getEntrytime() {
        return entrytime;
    }

    public void setEntrytime(Date entrytime) {
        this.entrytime = entrytime;
    }


    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public Integer getLingdao() {
        return lingdao;
    }

    public void setLingdao(Integer lingdao) {
        this.lingdao = lingdao;
    }

    @Override
    public String toString() {
        return "Doctor{" +
                "docid=" + docid +
                ", docname='" + docname + '\'' +
                ", doclogin='" + doclogin + '\'' +
                ", docpassword='" + docpassword + '\'' +
                ", docsex=" + docsex +
                ", docage=" + docage +
                ", department=" + department +
                ", jobtitle=" + jobtitle +
                ", phone='" + phone + '\'' +
                ", landline='" + landline + '\'' +
                ", introduce='" + introduce + '\'' +
                ", state=" + state +
                ", entrytime=" + entrytime +
                ", departuretime=" + departuretime +
                ", lingdao='" + lingdao + '\'' +
                ", doctorRName='" + doctorRName + '\'' +
                ", kname='" + kname + '\'' +
                '}';
    }
}